package com.cefa.edu.common.result;

/**
 * Created by qimwang on 8/7/17.
 */
public class AbstractResult<T> implements Result<T> {
    protected ReturnMessage error;

    protected T data;

    public AbstractResult(ReturnMessage error, T dataT) {
        this.error = error;
        this.data = dataT;
    }

    @Override
    public ReturnMessage getError() {
        return this.error;
    }

    @Override
    public void setError(ReturnMessage error) {
        this.error = error;
    }


    @Override
    public T getData() {
        return this.data;
    }

    @Override
    public void setData(T dataT) {
        this.data = dataT;
    }
}
